 function fire_ajax_submit(formId,btnId,resultId,editImgId) {
		 var csrfToken = $('#_csrf').attr("content");
		 var csrfHeader = $('#_csrf_header').attr("content");
        // Get form
        var form = $(formId)[0];
        console.log("123");
        var data = new FormData(form);
        data.append("CustomField", "This is some extra data, testing");
        $(btnId).prop("disabled", true);
        $.ajax({
            type: "POST",
            enctype: 'multipart/form-data',
            url: "/multi",
            data: data,
            beforeSend: function(xhr){
                xhr.setRequestHeader(csrfHeader, csrfToken);
            },
            //http://api.jquery.com/jQuery.ajax/
            //http://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects
            processData: false, //prevent jQuery from automatically transforming the data into a query string
            contentType: false,
            cache: false,
            timeout: 600000,
            success: function (data) {
                $(resultId).text("上传成功");
                $(btnId).prop("disabled", false);
                $(editImgId).attr("src", "/"+data); 
            },
            error: function (e) {

                $(resultId).text(e.responseText);
                console.log("ERROR : ", e);
                $(btnId).prop("disabled", false);

            }
        });
 }
 
 function fire_ajax_submit(formId,btnId,resultId,editImgId,editInputId) {
	 var csrfToken = $('#_csrf').attr("content");
	 var csrfHeader = $('#_csrf_header').attr("content");
    // Get form
    var form = $(formId)[0];
    console.log("123");
    var data = new FormData(form);
    data.append("CustomField", "This is some extra data, testing");
    $(btnId).prop("disabled", true);
    $.ajax({
        type: "POST",
        enctype: 'multipart/form-data',
        url: "/multi",
        data: data,
        beforeSend: function(xhr){
            xhr.setRequestHeader(csrfHeader, csrfToken);
        },
        //http://api.jquery.com/jQuery.ajax/
        //http://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects
        processData: false, //prevent jQuery from automatically transforming the data into a query string
        contentType: false,
        cache: false,
        timeout: 600000,
        success: function (data) {
        	$(editInputId).attr("value",data);
            $(resultId).text("上传成功");
            $(btnId).prop("disabled", false);
            $(editImgId).attr("src", "/"+data); 
        },
        error: function (e) {

            $(resultId).text(e.responseText);
            console.log("ERROR : ", e);
            $(btnId).prop("disabled", false);

        }
    });
}